package com.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.pojo.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2023-10-11 22:05:23
 */
@Mapper
public interface BookDao extends BaseMapper<Book> {

    List<Book> getBooksByAuthorId(Long id);

    void deleteBookByAuthor(Long id);
}
